]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Use AppIcon.app to check action-support by the drag source
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 2 Aug 2019 10:58:34 +0000 (12:58 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 18 Sep 2019 17:14:16 +0000 (17:14 +0000)
commit942758bb3082f573a2517f7601a1fdb3e5e4bfe5
tree2269564c084bcf6bbab067ce3d1a47c3290dcc2f
parente0947b01bd636dfbb59f87f0008eb8cdbc26e845
workspace: Use AppIcon.app to check action-support by the drag source

`AppIcon.shellWorkspaceLaunch()` can easily be replaced by checking for
`AppIcon.app` and calling `AppIcon.app.open_new_window()` directly.

For compatibility and to prevent breaking extensions implementing the
function, keep supporting the `shellWorkspaceLaunch` API in AppIcon
while logging a deprecation warning. Also keep supporting the API on
drag sources (without deprecating it) to allow extensions to define
custom actions on their drag sources.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/121
js/ui/appDisplay.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js